home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_02 / smith / bazcom.h < prev    next >
Text File  |  1993-12-29  |  820b  |  23 lines

  1. /* BAZCOM.H
  2.  * Contributed to Public Domain 9/93
  3.  * by Thad Smith, Boulder Co.
  4.  */
  5.  
  6. /* Internal constants */
  7. #define BASE  94        /* # possible output chars */
  8. #define FIRST_CODE  '!' /* lowest output char      */
  9. #define END_FLAG    '}' /* starts last data block  */
  10. #define PBASE   56      /* prefix base             */
  11. #define BINB_LEN 9      /* length of binary block  */
  12. #define ENCB_LEN 11     /* length of encoded block */
  13. #define MAX_ENDBLK_DB  13 /* max # data bytes in
  14.                            * final ensemble        */
  15. #define MAX_ENDBLK_LEN (MAX_ENDBLK_DB+2+2*2)  /* max
  16.  *length of final ensemble, starting with END_FLAG */
  17. #define CRC_INIT_VALUE (~0) /* CRC seed            */
  18. /* prefix multiplier */
  19. #define PBMULT (unsigned)(((0xffffffffUL/PBASE)>>16)+1)
  20.  
  21. /* End of File */ 
  22.  
  23.